package com.cssnj.portal.domain.manage;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 应用功能接入实体类
 *
 * @author Arthur
 * @version 1.0
 * @since 2018-9-13 17:55
 */
@Entity
@Table(name = "YY_GN_JR")
public class YyGnJrEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String gnId;
    private String gnMc;
    private String gnJc;
    private String yyid;
    private String sjgnId;
    private String href;
    private String beKjfs;
    private String kzBj;
    private String xsBj;
    private String gnms;
    private String xqsm;
    private String jssm;
    private String status;
    private String xybj;
    private Timestamp xgsj;
    private Timestamp lrsj;
    private String xgryid;
    private String lrryid;

    @Id
    @Column(name = "GN_ID")
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Basic
    @Column(name = "GN_MC")
    public String getGnMc() {
        return gnMc;
    }

    public void setGnMc(String gnMc) {
        this.gnMc = gnMc;
    }

    @Basic
    @Column(name = "GN_JC")
    public String getGnJc() {
        return gnJc;
    }

    public void setGnJc(String gnJc) {
        this.gnJc = gnJc;
    }

    @Basic
    @Column(name = "YYID")
    public String getYyid() {
        return yyid;
    }

    public void setYyid(String yyid) {
        this.yyid = yyid;
    }

    @Basic
    @Column(name = "SJGN_ID")
    public String getSjgnId() {
        return sjgnId;
    }

    public void setSjgnId(String sjgnId) {
        this.sjgnId = sjgnId;
    }

    @Basic
    @Column(name = "HREF")
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Basic
    @Column(name = "BE_KJFS")
    public String getBeKjfs() {
        return beKjfs;
    }

    public void setBeKjfs(String beKjfs) {
        this.beKjfs = beKjfs;
    }

    @Basic
    @Column(name = "KZ_BJ")
    public String getKzBj() {
        return kzBj;
    }

    public void setKzBj(String kzBj) {
        this.kzBj = kzBj;
    }

    @Basic
    @Column(name = "XS_BJ")
    public String getXsBj() {
        return xsBj;
    }

    public void setXsBj(String xsBj) {
        this.xsBj = xsBj;
    }

    @Basic
    @Column(name = "GNMS")
    public String getGnms() {
        return gnms;
    }

    public void setGnms(String gnms) {
        this.gnms = gnms;
    }

    @Basic
    @Column(name = "XQSM")
    public String getXqsm() {
        return xqsm;
    }

    public void setXqsm(String xqsm) {
        this.xqsm = xqsm;
    }

    @Basic
    @Column(name = "JSSM")
    public String getJssm() {
        return jssm;
    }

    public void setJssm(String jssm) {
        this.jssm = jssm;
    }

    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "XYBJ")
    public String getXybj() {
        return xybj;
    }

    public void setXybj(String xybj) {
        this.xybj = xybj;
    }

    @Basic
    @Column(name = "XGSJ")
    public Timestamp getXgsj() {
        return xgsj;
    }

    public void setXgsj(Timestamp xgsj) {
        this.xgsj = xgsj;
    }

    @Basic
    @Column(name = "LRSJ")
    public Timestamp getLrsj() {
        return lrsj;
    }

    public void setLrsj(Timestamp lrsj) {
        this.lrsj = lrsj;
    }

    @Basic
    @Column(name = "XGRYID")
    public String getXgryid() {
        return xgryid;
    }

    public void setXgryid(String xgryid) {
        this.xgryid = xgryid;
    }

    @Basic
    @Column(name = "LRRYID")
    public String getLrryid() {
        return lrryid;
    }

    public void setLrryid(String lrryid) {
        this.lrryid = lrryid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YyGnJrEntity that = (YyGnJrEntity) o;
        return Objects.equals(gnId, that.gnId) &&
                Objects.equals(gnMc, that.gnMc) &&
                Objects.equals(yyid, that.yyid) &&
                Objects.equals(sjgnId, that.sjgnId) &&
                Objects.equals(href, that.href) &&
                Objects.equals(beKjfs, that.beKjfs) &&
                Objects.equals(kzBj, that.kzBj) &&
                Objects.equals(xsBj, that.xsBj) &&
                Objects.equals(gnms, that.gnms) &&
                Objects.equals(xqsm, that.xqsm) &&
                Objects.equals(jssm, that.jssm) &&
                Objects.equals(status, that.status) &&
                Objects.equals(xybj, that.xybj) &&
                Objects.equals(xgsj, that.xgsj) &&
                Objects.equals(lrsj, that.lrsj) &&
                Objects.equals(xgryid, that.xgryid) &&
                Objects.equals(lrryid, that.lrryid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gnId, gnMc, yyid, sjgnId, href, beKjfs, kzBj, xsBj, gnms, xqsm, jssm, status, xybj, xgsj, lrsj, xgryid, lrryid);
    }
}
